home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Players / Texture3D / textures.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.4 KB  |  37 lines

  1. //-----------------------------------------------------------------------------
  2. // File: Textures.h
  3. //
  4. // Desc: DirectShow sample code - header file for DirectShow/Direct3D8 video 
  5. //       texturing
  6. //       
  7. // Copyright (c) 2000-2001 Microsoft Corporation.  All rights reserved.
  8. //-----------------------------------------------------------------------------
  9.  
  10.  
  11. #include <d3dx8.h>
  12. #include <windows.h>
  13. #include <mmsystem.h>
  14. #include <atlbase.h>
  15. #include <stdio.h>
  16.  
  17. #include <d3d8types.h>
  18.  
  19. //-----------------------------------------------------------------------------
  20. // Forward Declarations
  21. //-----------------------------------------------------------------------------
  22. HRESULT InitDShowTextureRenderer(LPDIRECT3DTEXTURE8 pTexture);
  23. void CheckMovieStatus(void);
  24. void CleanupDShow(void);
  25. HRESULT AddToROT(IUnknown *pUnkGraph); 
  26. void RemoveFromROT(void);
  27. void Msg(TCHAR *szFormat, ...);
  28.  
  29. //-----------------------------------------------------------------------------
  30. // Direct3D global variables
  31. //-----------------------------------------------------------------------------
  32. extern LPDIRECT3D8             g_pD3D;         // Used to create the D3DDevice
  33. extern LPDIRECT3DDEVICE8       g_pd3dDevice; // Our rendering device
  34. extern LPDIRECT3DVERTEXBUFFER8 g_pVB;         // Buffer to hold vertices
  35. extern LPDIRECT3DTEXTURE8      g_pTexture;   // Our texture
  36.  
  37.